package com.wenqiner.requesttool.core.thread;

import java.util.concurrent.RejectedExecutionHandler;

/**
 * @author rhf
 * @date 2023-03-24
 **/
public interface CustomerRejectedExecutionHandler extends RejectedExecutionHandler {

    /**
     * 拒绝策略
     * @author rhf
     * @param r 语法糖
     * @param executor 线程池
     */
    void rejectedExecution(Runnable r, CustomerThreadPoolExecutor executor);

}
